package beautiful.butterfly.drds.data_exchange.enums;

public enum State implements IntValueEnum
{


    running(1),
    killed(2),
    failed(3),
    succeeded(4);


    private int value;

    private State(int value)
    {
        this.value = value;
    }

    public int value()
    {
        return value;
    }


    public boolean isFinished()
    {
        return this == killed || this == failed || this == succeeded;
    }

    public boolean isRunning()
    {
        return !isFinished();
    }

}